package com.sky.service.user.impl;

import com.sky.mapper.user.UserSetmealMapper;
import com.sky.pojo.Setmeal;
import com.sky.service.user.UserSetmealService;
import com.sky.vo.DishItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserSetmealServiceImpl implements UserSetmealService {


    @Autowired
    private UserSetmealMapper userSetmealMapper;



    /**
     * 根据分类id查询套餐
     *
     * @param categoryId
     */
    @Override
    public List<Setmeal> selectSetmeal(Integer categoryId) {
        return userSetmealMapper.selectSetmeal(categoryId);
    }


    /**
     * 根据套餐id查询包含的菜品
     *
     * @param setmealld
     */
    @Override
    public List<DishItemVO> selectDishItemVO(Integer setmealld) {
        return userSetmealMapper.selectDishItemVO(setmealld);
    }
}
